<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>自主认款 确认页面</title>
    <style type="text/css">
    </style>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>

<body class="iframeBody">
<form id="capFundConfirm_form">
    <div class="fieldset1 tabel_col tabel_col_1 clearFix">
        <div class="fieldBox col_100">
            <span>是否确定此人为来款人？</span>
        </div>
        <div class="fieldBox col_100">
            <div class="label">认款备注</div>
            <div class="field">
                <textarea name="docketRem" id="docketRem" class="ui-textarea l-textarea"
                          rows="4" cols="60" style="width: 99%;" validate="{required:false,maxlength:200}"></textarea>
            </div>
        </div>
    </div>
</form>


<script type="text/javascript">
    $(function () {
        var dialog = frameElement.dialog; //调用页面的dialog对象(ligerui对象)
        var data = dialog.get('confData');//获取data参数

        $("#capFundConfirm_form").ligerForm({
            validate: true
        });

        //按钮在页面外的Dialog里，给Dialog绑定事件 （onOk 和 onCancel）
        frameElement.dialog.onOk = function () {
            frameElement.dialog.disabledBtns();
            data['docketRem']=$("#docketRem").val();
            alert(JSON.stringify(data));
            frameElement.dialog.mask();

            top.$.ligerDialog.SQalert({content: "成功", SQ_type: "success"});
            frameElement.dialog.close();

            /*var wait_dialog;
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: data,
                url: '<%=path%>/capital/capFund/confirmFund.do',
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({
                        content: LogUtils.LOG_CMM_DATA_LOADING,
                        SQ_type: "waitting"
                    });
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        parent.$("#searchBtn").click();
                        frameElement.dialog.close();
                    } else {
                        top.$.ligerDialog.SQalert({content: msg.info, SQ_showButtons : true,SQ_type: "error"});
                        frameElement.dialog.enabledBtns();
                    }
                }
            });*/
        };
        frameElement.dialog.onCancel = function () {
            frameElement.dialog.hide();
        };

    });
</script>

</body>
</html>
